<template>
  <basic-container>
    <avue-crud
        v-bind="bindVal"
        v-on="onEvent"
        :page.sync="page"
        v-model="startForm">
      <template slot="menuLeft">
        <el-button type="primary" @click="downloadTemplate()" size="small">下载导入模板</el-button>
        <el-button type="primary" @click="exportExcel()" size="small">导出</el-button>
      </template>


      <template slot-scope="{type,size,row}" slot="menu">
        <el-button icon="el-icon-check" @click="handlerDictionaryItem(row)" :size="size" :type="type">字典项</el-button>
      </template>
    </avue-crud>
    <item ref="dictionaryItem"></item>

  </basic-container>
</template>

<script>
import item from "./item"
import startCrud from "@/mixins/start-crud.js"

export default startCrud({
      components: {
        item,

      },
      methods: {
        handlerDictionaryItem(row) {
          this.$refs.dictionaryItem.show(row.id)
        },

      }
    },
    {
      name: "sys/dictionary"
    }
)
</script>

<style scoped>

</style>
